class SpecialModel {
  bool deleted;
  String bannerIds;
  int id;
  int row;
  List<SpecialChilds> childs;

  SpecialModel({this.deleted, this.bannerIds, this.id, this.row, this.childs});

  SpecialModel.fromJson(Map<String, dynamic> json) {
    deleted = json['deleted'];
    bannerIds = json['bannerIds'];
    id = json['id'];
    row = json['row'];
    if (json['childs'] != null) {
      childs = new List<SpecialChilds>();
      json['childs'].forEach((v) {
        childs.add(new SpecialChilds.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['deleted'] = this.deleted;
    data['bannerIds'] = this.bannerIds;
    data['id'] = this.id;
    data['row'] = this.row;
    if (this.childs != null) {
      data['childs'] = this.childs.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class SpecialChilds {
  String description;
  Null remark;
  int flashJumpPositionId;
  String viewPosition;
  String type;
  String title;
  String jumpUrl;
  Null enabled;
  String extendParams;
  int enable;
  String onlineTime;
  String offlineTime;
  int id;
  String jumpName;
  String objectId;
  Null shopPlatform;
  String backgroundImgUrl;
  String updateTime;
  int sort;
  String url;
  int isLocal;
  Null terminalType;
  String imgUrl;
  String createTime;
  int businessType;
  String jumpKey;

  SpecialChilds(
      {this.description,
        this.remark,
        this.flashJumpPositionId,
        this.viewPosition,
        this.type,
        this.title,
        this.jumpUrl,
        this.enabled,
        this.extendParams,
        this.enable,
        this.onlineTime,
        this.offlineTime,
        this.id,
        this.jumpName,
        this.objectId,
        this.shopPlatform,
        this.backgroundImgUrl,
        this.updateTime,
        this.sort,
        this.url,
        this.isLocal,
        this.terminalType,
        this.imgUrl,
        this.createTime,
        this.businessType,
        this.jumpKey});

  SpecialChilds.fromJson(Map<String, dynamic> json) {
    description = json['description'];
    remark = json['remark'];
    flashJumpPositionId = json['flashJumpPositionId'];
    viewPosition = json['viewPosition'];
    type = json['type'];
    title = json['title'];
    jumpUrl = json['jumpUrl'];
    enabled = json['enabled'];
    extendParams = json['extendParams'];
    enable = json['enable'];
    onlineTime = json['onlineTime'];
    offlineTime = json['offlineTime'];
    id = json['id'];
    jumpName = json['jumpName'];
    objectId = json['objectId'];
    shopPlatform = json['shopPlatform'];
    backgroundImgUrl = json['backgroundImgUrl'];
    updateTime = json['updateTime'];
    sort = json['sort'];
    url = json['url'];
    isLocal = json['isLocal'];
    terminalType = json['terminalType'];
    imgUrl = json['imgUrl'];
    createTime = json['createTime'];
    businessType = json['businessType'];
    jumpKey = json['jumpKey'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['description'] = this.description;
    data['remark'] = this.remark;
    data['flashJumpPositionId'] = this.flashJumpPositionId;
    data['viewPosition'] = this.viewPosition;
    data['type'] = this.type;
    data['title'] = this.title;
    data['jumpUrl'] = this.jumpUrl;
    data['enabled'] = this.enabled;
    data['extendParams'] = this.extendParams;
    data['enable'] = this.enable;
    data['onlineTime'] = this.onlineTime;
    data['offlineTime'] = this.offlineTime;
    data['id'] = this.id;
    data['jumpName'] = this.jumpName;
    data['objectId'] = this.objectId;
    data['shopPlatform'] = this.shopPlatform;
    data['backgroundImgUrl'] = this.backgroundImgUrl;
    data['updateTime'] = this.updateTime;
    data['sort'] = this.sort;
    data['url'] = this.url;
    data['isLocal'] = this.isLocal;
    data['terminalType'] = this.terminalType;
    data['imgUrl'] = this.imgUrl;
    data['createTime'] = this.createTime;
    data['businessType'] = this.businessType;
    data['jumpKey'] = this.jumpKey;
    return data;
  }
}